#Makefile
CC=g++

OBJECTS= dump.o

SRC= dump.cpp

LIBS= -L../lib -lpng
CFLAGS = -I ./

all: compile link

link: $(OBJECTS)
	$(CC) $(CFLAGS) -o pngtest  $(OBJECTS) $(LIBS)
	

compile: $(SRC)
	$(CC) $(CFLAGS) -c $(SRC)



run:
	./pngtest
	
clean:
	rm -rf *.o pngtest *.png
	
